var mainPlatform = {

	init: function(){

		this.bindEvent();
	},

	bindEvent: function(){
		var self = this;
        $(document).on('click', '.sider-nav li', function() {
        	var lis = $('.sider-nav li');
        	for(var i = 0;i<lis.length;i++) {
        		var oLi = lis[i];
        		if($(oLi).attr("class") == 'current') {
        			$(oLi).removeClass('current');
        		}
        	}
            $(this).addClass('current');
        });
       
        //左侧菜单收起
        $(document).on('click', '.toggle-icon', function() {
            $(this).closest("#pf-bd").toggleClass("toggle");
            setTimeout(function(){
            	$(window).resize();
            },300)
        });
	}

};

mainPlatform.init();